
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>Redis缓存三大问题 · Dragon GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="Bruse-Lee">
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-back-to-top-button/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search-pro/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-tbfed-pagefooter/footer.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-pageview-count/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-page-toc-button/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="penetrate.html" />
    
    
    <link rel="prev" href="../CSharp/Factory.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    
    
        
        <li>
            <a href="http://tinytalking.blackdragonlee.com/login" target="_blank" class="custom-link">MyTinyTalk</a>
        </li>
    
    

    
    <li class="divider"></li>
    

    
        
        <li class="header">简介</li>
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    Introduction
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">My Life👓</li>
        
        
    
        <li class="chapter " data-level="2.1" data-path="../Family.html">
            
                <a href="../Family.html">
            
                    
                    👦🏼全家福
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="../ListBook.html">
            
                <a href="../ListBook.html">
            
                    
                    百科全书📕
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="../Basketball.html">
            
                <a href="../Basketball.html">
            
                    
                    篮球🤾🏾‍♂️所带给我的一切
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4" data-path="../secret.html">
            
                <a href="../secret.html">
            
                    
                    与老友🧙🏼‍♂️彻夜长谈的秘密
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">My Technical Summary🧰</li>
        
        
    
        <li class="chapter " data-level="3.1" data-path="../book.html">
            
                <a href="../book.html">
            
                    
                    Gitbook的那些事🌟
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.2" data-path="../FileOnline.html">
            
                <a href="../FileOnline.html">
            
                    
                    💥项目上线的那些事
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.3" data-path="../lock.html">
            
                <a href="../lock.html">
            
                    
                    🤔悲观锁和😀乐观锁
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.4" data-path="../ShareHand.html">
            
                <a href="../ShareHand.html">
            
                    
                    三次握手🤝,四次挥手👋得这么讲
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.5" data-path="../RemoveRestrictions.html">
            
                <a href="../RemoveRestrictions.html">
            
                    
                    解除网盘下载速度限制🚀
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.6" data-path="../Bilibili.html">
            
                <a href="../Bilibili.html">
            
                    
                    📺小破站的爱恨情仇
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">My Technical Document⏳</li>
        
        
    
        <li class="chapter " data-level="4.1" data-path="../CSharp/">
            
                <a href="../CSharp/">
            
                    
                    C#设计模式
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="4.1.1" data-path="../CSharp/Singleton.html">
            
                <a href="../CSharp/Singleton.html">
            
                    
                    第一节-单例模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.1.2" data-path="../CSharp/Factory.html">
            
                <a href="../CSharp/Factory.html">
            
                    
                    第二节-简单工程和工厂方法模式
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter active" data-level="4.2" data-path="Redis.html">
            
                <a href="Redis.html">
            
                    
                    Redis缓存三大问题
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="4.2.1" data-path="penetrate.html">
            
                <a href="penetrate.html">
            
                    
                    001-缓存穿透
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2.2" data-path="breakdown.html">
            
                <a href="breakdown.html">
            
                    
                    002-缓存击穿
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2.3" data-path="avalanche.html">
            
                <a href="avalanche.html">
            
                    
                    003-缓存雪崩
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    
        
        <li class="header">My Practice Topic</li>
        
        
    
        <li class="chapter " data-level="5.1" data-path="../LeetCode/">
            
                <a href="../LeetCode/">
            
                    
                    LeetCode刷题
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="5.1.1" data-path="../LeetCode/Sum.html">
            
                <a href="../LeetCode/Sum.html">
            
                    
                    001-两数之和
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.1.2" data-path="../LeetCode/Ice.html">
            
                <a href="../LeetCode/Ice.html">
            
                    
                    002-雪糕的最大数量
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >Redis缓存三大问题</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="redis&#x7F13;&#x5B58;&#x4E09;&#x5927;&#x95EE;&#x9898;">Redis&#x7F13;&#x5B58;&#x4E09;&#x5927;&#x95EE;&#x9898;</h1>
<p><strong>&#x65E5;&#x5E38;&#x7684;&#x5F00;&#x53D1;&#x4E2D;&#xFF0C;&#x65E0;&#x4E0D;&#x90FD;&#x662F;&#x4F7F;&#x7528;&#x6570;&#x636E;&#x5E93;&#x6765;&#x8FDB;&#x884C;&#x6570;&#x636E;&#x7684;&#x5B58;&#x50A8;&#xFF0C;&#x7531;&#x4E8E;&#x4E00;&#x822C;&#x7684;&#x7CFB;&#x7EDF;&#x4EFB;&#x52A1;&#x4E2D;&#x901A;&#x5E38;&#x4E0D;&#x4F1A;&#x5B58;&#x5728;&#x9AD8;&#x5E76;&#x53D1;&#x7684;&#x60C5;&#x51B5;&#xFF0C;&#x6240;&#x4EE5;&#x8FD9;&#x6837;&#x770B;&#x8D77;&#x6765;&#x5E76;&#x6CA1;&#x6709;&#x4EC0;&#x4E48;&#x95EE;&#x9898;&#x3002;</strong></p>
<p><strong>&#x4E00;&#x65E6;&#x6D89;&#x53CA;&#x5927;&#x6570;&#x636E;&#x91CF;&#x7684;&#x9700;&#x6C42;&#xFF0C;&#x5982;&#x4E00;&#x4E9B;&#x5546;&#x54C1;&#x62A2;&#x8D2D;&#x7684;&#x60C5;&#x666F;&#xFF0C;&#x6216;&#x8005;&#x4E3B;&#x9875;&#x8BBF;&#x95EE;&#x91CF;&#x77AC;&#x95F4;&#x8F83;&#x5927;&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x5355;&#x4E00;&#x4F7F;&#x7528;&#x6570;&#x636E;&#x5E93;&#x6765;&#x4FDD;&#x5B58;&#x6570;&#x636E;&#x7684;&#x7CFB;&#x7EDF;&#x4F1A;&#x56E0;&#x4E3A;&#x9762;&#x5411;&#x78C1;&#x76D8;&#xFF0C;&#x78C1;&#x76D8;&#x8BFB;/&#x5199;&#x901F;&#x5EA6;&#x95EE;&#x9898;&#x6709;&#x4E25;&#x91CD;&#x7684;&#x6027;&#x80FD;&#x5F0A;&#x7AEF;&#x3002;</strong></p>
<p><strong>&#x5728;&#x8FD9;&#x4E00;&#x77AC;&#x95F4;&#x6210;&#x5343;&#x4E0A;&#x4E07;&#x7684;&#x8BF7;&#x6C42;&#x5230;&#x6765;&#xFF0C;&#x9700;&#x8981;&#x7CFB;&#x7EDF;&#x5728;&#x6781;&#x77ED;&#x7684;&#x65F6;&#x95F4;&#x5185;&#x5B8C;&#x6210;&#x6210;&#x5343;&#x4E0A;&#x4E07;&#x6B21;&#x7684;&#x8BFB;/&#x5199;&#x64CD;&#x4F5C;&#xFF0C;&#x8FD9;&#x4E2A;&#x65F6;&#x5019;&#x5F80;&#x5F80;&#x4E0D;&#x662F;&#x6570;&#x636E;&#x5E93;&#x80FD;&#x591F;&#x627F;&#x53D7;&#x7684;&#xFF0C;&#x6781;&#x5176;&#x5BB9;&#x6613;&#x9020;&#x6210;&#x6570;&#x636E;&#x5E93;&#x7CFB;&#x7EDF;&#x762B;&#x75EA;&#xFF0C;&#x6700;&#x7EC8;&#x5BFC;&#x81F4;&#x670D;&#x52A1;&#x5B95;&#x673A;&#x7684;&#x4E25;&#x91CD;&#x751F;&#x4EA7;&#x95EE;&#x9898;&#x3002;</strong></p>
<p><strong>&#x4E3A;&#x4E86;&#x514B;&#x670D;&#x4E0A;&#x8FF0;&#x7684;&#x95EE;&#x9898;&#xFF0C;&#x9879;&#x76EE;&#x901A;&#x5E38;&#x4F1A;&#x5F15;&#x5165;NoSQL&#x6280;&#x672F;&#xFF0C;&#x8FD9;&#x662F;&#x4E00;&#x79CD;&#x57FA;&#x4E8E;&#x5185;&#x5B58;&#x7684;&#x6570;&#x636E;&#x5E93;&#xFF0C;&#x5E76;&#x4E14;&#x63D0;&#x4F9B;&#x4E00;&#x5B9A;&#x7684;&#x6301;&#x4E45;&#x5316;&#x529F;&#x80FD;&#x3002;</strong></p>
<p><strong><font color="red">Redis&#x6280;&#x672F;&#x5C31;&#x662F;NoSQL&#x6280;&#x672F;&#x4E2D;&#x7684;&#x4E00;&#x79CD;&#x3002;Redis&#x7F13;&#x5B58;&#x7684;&#x4F7F;&#x7528;&#xFF0C;&#x6781;&#x5927;&#x7684;&#x63D0;&#x5347;&#x4E86;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#x7684;&#x6027;&#x80FD;&#x548C;&#x6548;&#x7387;&#xFF0C;&#x7279;&#x522B;&#x662F;&#x6570;&#x636E;&#x67E5;&#x8BE2;&#x65B9;&#x9762;&#x3002;</font></strong></p>
<p><strong>&#x4F46;&#x540C;&#x65F6;&#xFF0C;&#x5B83;&#x4E5F;&#x5E26;&#x6765;&#x4E86;&#x4E00;&#x4E9B;&#x95EE;&#x9898;&#x3002;&#x5176;&#x4E2D;&#xFF0C;&#x6700;&#x8981;&#x5BB3;&#x7684;&#x95EE;&#x9898;&#xFF0C;&#x5C31;&#x662F;&#x6570;&#x636E;&#x7684;&#x4E00;&#x81F4;&#x6027;&#x95EE;&#x9898;&#xFF0C;&#x4ECE;&#x4E25;&#x683C;&#x610F;&#x4E49;&#x4E0A;&#x8BB2;&#xFF0C;&#x8FD9;&#x4E2A;&#x95EE;&#x9898;&#x65E0;&#x89E3;&#x3002;&#x5982;&#x679C;&#x5BF9;&#x6570;&#x636E;&#x7684;&#x4E00;&#x81F4;&#x6027;&#x8981;&#x6C42;&#x5F88;&#x9AD8;&#xFF0C;&#x90A3;&#x4E48;&#x5C31;&#x4E0D;&#x80FD;&#x4F7F;&#x7528;&#x7F13;&#x5B58;&#x3002;</strong></p>
<p><strong>&#x53E6;&#x5916;&#x7684;&#x4E00;&#x4E9B;&#x5178;&#x578B;&#x95EE;&#x9898;&#x5C31;&#x662F;&#xFF0C;<font color="red">&#x7F13;&#x5B58;&#x7A7F;&#x900F;&#x3001;&#x7F13;&#x5B58;&#x51FB;&#x7A7F;&#x548C;&#x7F13;&#x5B58;&#x96EA;&#x5D29;</font>&#x3002;</strong> </p>
<footer class="page-footer"><span class="copyright">Copyright &#xA9; book.blackdragonlee.com 2021 all right reserved&#xFF0C;powered by Gitbook</span><span class="footer-modification">&#x8BE5;&#x5185;&#x5BB9;&#x66F4;&#x65B0;&#x65F6;&#x95F4;&#xFF1A;
2021-06-27 22:06:02
</span></footer>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="../CSharp/Factory.html" class="navigation navigation-prev " aria-label="Previous page: 第二节-简单工程和工厂方法模式">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="penetrate.html" class="navigation navigation-next " aria-label="Next page: 001-缓存穿透">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"Redis缓存三大问题","level":"4.2","depth":1,"next":{"title":"001-缓存穿透","level":"4.2.1","depth":2,"path":"Redis/penetrate.md","ref":"Redis/penetrate.md","articles":[]},"previous":{"title":"第二节-简单工程和工厂方法模式","level":"4.1.2","depth":2,"path":"CSharp/Factory.md","ref":"CSharp/Factory.md","articles":[]},"dir":"ltr"},"config":{"plugins":["expandable-chapters","back-to-top-button","-lunr","-search","search-pro","splitter","tbfed-pagefooter","github","pageview-count","page-toc-button","livereload"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"Copyright &copy book.blackdragonlee.com 2021","modify_label":"该内容更新时间：","modify_format":"YYYY-MM-DD HH:mm:ss"},"pluginsConfig":{"page-toc-button":{"maxTocDepth":2,"minTocSize":2}},"github":{"url":"https://github.com/Bruse-Lee"},"livereload":{},"splitter":{},"search-pro":{},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"page-toc-button":{},"back-to-top-button":{},"pageview-count":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"theme":"default","author":"Bruse-Lee","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Dragon GitBook","language":"zh-hans","links":{"sidebar":{"MyTinyTalk":"http://tinytalking.blackdragonlee.com/login"}},"gitbook":"*","description":"记录日常学习的技术文档与生活趣事"},"file":{"path":"Redis/Redis.md","mtime":"2021-06-27T14:06:02.250Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2021-07-02T13:59:02.253Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-back-to-top-button/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-pro/jquery.mark.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-pro/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-github/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-pageview-count/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-page-toc-button/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

